from org.eclipse.jface.action import Action

class ChangePerspective(Action):
    def __init__(self, window):
        self.window = window
        self.text = 'Change perspective'
        
        
    def runWithEvent(self, event):
        self.window.workbench.showPerspective('org.jyrcp.base.perspectives.alternative', self.window)